function addUrl(name, value) {  
		    var currentUrl = window.location.href.split('#')[0];  
		    currentUrl=delUrl(currentUrl,name)
		    if (/\?/g.test(currentUrl)) {
		    
		        if (/name=[-\w]{4,25}/g.test(currentUrl)) {  
		            currentUrl = currentUrl.replace(/name=[-\w]{4,25}/g, name + "=" + value);  
		        } else {  
		        	
		            currentUrl += "&" + name + "=" + value;  
		            
		        }    
		    } else {  
		        currentUrl += "?" + name + "=" + value;  
		    }  
		    
		    if (window.location.href.split('#')[1]) {  
		        window.location.href = currentUrl + '#' + window.location.href.split('#')[1];  
		    } else {  
		        window.location.href = currentUrl;  
		    }  
		}
		function removeUrl(ref){
			var currentUrl = window.location.href.split('#')[0];  
			currentUrl=delUrl(currentUrl, ref);
			window.location.href = currentUrl;  
		}
		function delUrl(url, ref) //删除参数值
		{
			
		    var str = "";

		    if (url.indexOf('?') != -1)
		        str = url.substr(url.indexOf('?') + 1);
		    else
		        return url;
		    var arr = "";
		    var returnurl = "";
		    var setparam = "";
		    if (str.indexOf('&') != -1) {
		        arr = str.split('&');
		        for (i in arr) {
		            if (arr[i].split('=')[0] != ref) {
		                returnurl = returnurl + arr[i].split('=')[0] + "=" + arr[i].split('=')[1] + "&";
		            }
		        }
		        return url.substr(0, url.indexOf('?')) + "?" + returnurl.substr(0, returnurl.length - 1);
		    }
		    else {
		        arr = str.split('=');
		        if (arr[0] == ref)
		            return url.substr(0, url.indexOf('?'));
		        else
		            return url;
		    }
		}